// 给懒羊羊添加动画
gsap.fromTo("#lazy-sheep",
    {
        opacity: 0,
        y: 100,
        scale: 0.5,
        rotation: -180
    },
    {
        opacity: 1,
        y: 0,
        scale: 1,
        rotation: 0,
        duration: 2,
        ease: "power2.out"
    });

// 让羊的眼睛转动
gsap.to(".eye-left", {
    rotation: 360,
    duration: 5,
    repeat: -1,
    ease: "linear"
});
gsap.to(".eye-right", {
    rotation: -360,
    duration: 5,
    repeat: -1,
    ease: "linear"
});

// 羊头轻轻摇动
gsap.to(".head", {
    rotation: 5,
    duration: 0.5,
    yoyo: true,
    repeat: -1,
    ease: "sine.inOut"
});

// 羊尾巴的摇动
gsap.to(".tail", {
    rotation: 20,
    duration: 0.8,
    yoyo: true,
    repeat: -1,
    ease: "sine.inOut"
});
